<?php
class UserLeaveDao {
	private $table = 'user_leave';
	public function get($id){
		return ClassManager::getSql()->oneDataCache($this->table, 'id', intval($id));
	}
	public function add($data){
		ClassManager::getSql()->insert($this->table, $data);
	}
}
?>